/**
 * @ClassName MyRunnable
 * @Description TODO
 * @Author Li
 * @Date 2022/8/9 16:14
 * @ModifyDate 2022/8/9 16:14
 * @Version 1.0
 */
public class MyRunnable implements Runnable {
    @Override
    public void run() {
        System.out.println("开始排队倒咖啡！");
        try {
            System.out.println("在" + Thread.currentThread().getName() + " 处倒咖啡！");
            Thread.sleep(2000);
            System.out.println(Thread.currentThread().getName() + "处取走咖啡！");
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
